package dfbz.demo05;

public class Test04 {
    public static void main(String[] args) {
        int i=100;
        do {
            int g=i%10;
            int s=i/10%10;
            int b=i/100;
            if(g*g*g+s*s*s+b*b*b==i){
                System.out.println(i);
            }
            i++;
        }while (i<999);
        System.out.println(i);
    }
}
